package com.dotflat.training.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * OfflineTrainingCourse
 * OT  == OfflineTraining
 */

@Entity
@Table(name = "ol_course")
@Data
@EqualsAndHashCode(callSuper = true)
public class OLCourse extends AreableObjectBase {

	@Column(columnDefinition = "bit(1) DEFAULT 0 COMMENT '是否开放' ", nullable = false)

	@ApiModelProperty("num")
	private Integer num;

	@ApiModelProperty("sellStatus")
	private Integer sellStatus;

	@ApiModelProperty("图片封面")
	private String imageUrl;

	@ApiModelProperty("视频地址")
	private String url;

	@ApiModelProperty("itemId'")
	private Integer itemId;

	@ApiModelProperty("soldNum'")
	private Integer soldNum;

	@ApiModelProperty("mediaType")
	private Integer mediaType;

	@ApiModelProperty("alias")
	private String alias;

	@ApiModelProperty("type'")
	private Integer type;

	@ApiModelProperty("sellerType")
	private Integer sellerType;

	@ApiModelProperty("title")
	private String title;

	@ApiModelProperty("price'")
	private Integer price;

	@ApiModelProperty("author")
	private String author;

	@ApiModelProperty("createdTime")
	private Long createdTime;

	@ApiModelProperty("liveStartAt")
	private Long liveStartAt;

}
